﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="Dbz.HomeworkHub.Core.Entities" assembly="Dbz.HomeworkHub.Core">

  <class name="UserRank" table="UserRank">

    <id name="UserRankId">
      <generator class="identity" />
    </id>
    
    <property name="Rank" type="double" />

    <many-to-one name="User" column="UserId" class="Dbz.HomeworkHub.Core.Entities.User" cascade="none" />
    <many-to-one name="Topic" column="TopicId" class="Dbz.HomeworkHub.Core.Entities.Topic" cascade="none" />
    
  </class>
  
</hibernate-mapping>